<style>
.fui-tab-scroll .item {
    font-size: 0.85rem;
}
</style>
<div class="fui-page">
	<div class="fui-content">
		<div class="fui-cellone" style="padding-bottom:0;padding-top:0.5rem;padding-right:0.4rem;z-index: 108;top:0;">
			 <div ng-if="pagedata.pluginset.is_city!=1" class="fui-cell-label" style="width:auto;margin-right:0.3rem">
				<img style="height:1.2rem" ng-src="{{tomedia(pagedata.setting.logoindex) || '../addons/jy_xiangqin/resource/images/logo.png'}}"/>
			</div>
			<div ng-if="pagedata.pluginset.is_city==1" ng-click="pagedata.isshowmodal=1;pagedata.showcity=1" class="fui-cell-label" style="width:auto">
				<span style="font-size:0.75rem">{{pagedata.pcd.city || '广州市'}}</span>
			    <i class="icon icon-moreunfold"></i>
			</div>
			 <div class="fui-cellone-info">
				<div class="search-input" style="height:1.6rem">
					<form action="javascript:return true">
					<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="pagedata.getlist();" style="line-height: 1.7rem;"></i>
					<input type="search" placeholder="搜索" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;text-align: left; color: #999; font-size:0.6rem;border: 1px solid #fff;background:#fff;border-radius: 1rem;" />
					</form>
				</div>
			 </div>
			 <div class="fui-cellone-remark noremark">
			 	<span style="margin-left:0.3rem;font-size: 0.75rem;" ng-click="pagedata.getlist();">搜索</span>
				<span ng-click="access_json('jy_xiangqin/member.index/')" style="background:#;margin-left:0.3rem;font-size: 0.75rem;"><i class="icon icon-wo1"></i></span>
			 </div>
		</div>
		<div ng-if="pagedata.pluginset.open_hdps==1" class="radius" style="padding:0.5rem" ng-include="sys_html('common/_hdps')"></div>
		<div ng-if="pagedata.pluginset.open_bankuai1==1" style="padding:0 0.5rem" ng-include="sys_html('common/_bankuai1')"></div>
		<div class="fui-tab-scroll" style="margin-top:0;padding-left:0.5rem">
			<div ng-class="{'item':1,'on':pagedata.params.type==1}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.type=1;tool.get_list('jy_xiangqin/list/getmember/',true);">附近</a></div>
			<div ng-class="{'item':1,'on':pagedata.params.type==2}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.type=2;tool.get_list('jy_xiangqin/list/getmember/',true);">关注</a></div>
			<div ng-class="{'item':1,'on':pagedata.params.type==3}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.type=3;tool.get_list('jy_xiangqin/list/getmember/',true);">推荐</a></div>
		</div>
		<div ng-include="sys_html('common/_memberlist')"></div>
		<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>
<div ng-include="sys_html('diy/_area',true)"></div>
<div ng-include="sys_html('common/_tanimg')"></div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<!--弹目-->
<div ng-if="pagedata.showtanmus && !pagedata.pluginset.no_tanmu" class="video-sms-pane {{pagedata.transition?'transition':''}}">
		<div class="video-sms-text">
			<image class="video-sms-logo" ng-src="{{pagedata.tanmus[pagedata.nowmsgid].avatar}}"/>
			<span class="overflow-h"> 最新动态来自 {{pagedata.tanmus[pagedata.nowmsgid].nickname}}</span>
		</div>
</div>
<script type="text/javascript">
scope.pagedata.post={'sendtype':1,'dayid':0}
scope.pagedata.params.city=scope.pagedata.pcd.city;
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_xiangqin/list/getmember/');
}
scope.pagedata.getlist=function(){
	scope.pagedata.params.province=scope.pagedata.pcd.province;
	scope.pagedata.params.city=scope.pagedata.pcd.city;
	scope.pagedata.params.district=scope.pagedata.pcd.district;
	scope.tool.get_list('jy_xiangqin/list/getmember/',true);
}
</script>
<script>
scope.pagedata.issocketmsg=false;
scope.pagedata.tanmuspage=0;
scope.pagedata.nowmsgid=0;
scope.pagedata.gettanmus=function() {
	if(!scope.pagedata.issocketmsg){
			scope.get('jy_xiangqin/get_data/gettanmus/page='+scope.pagedata.tanmuspage,function(res){
						//console.log(res);
						scope.pagedata.tanmus=res.list
						if(scope.pagedata.tanmus.length>0){
							scope.pagedata.tanmuspage++;
							scope.pagedata.up_oldtanmu();
						}
			});
	}
}
//刚进入时；如果没有新订单消息，就弹储备订单消息
if(scope.pagedata.pluginset.no_tanmu!=1){
		setTimeout(function(){
			scope.pagedata.gettanmus();
		},2000);
}
scope.pagedata.up_oldtanmu=function() {
		if(scope.page.action=='quan'){
			var i=scope.pagedata.nowmsgid;
			if(i<scope.pagedata.tanmus.length){
				set_tanmu(scope.pagedata.tanmus[i].nickname,scope.pagedata.tanmus[i].avatar,scope.pagedata.tanmus[i].time);
			}else{
				scope.pagedata.gettanmus();
			}
		}else{
			return false;
		}
}
function set_tanmu(nickname,avatar,time) {
		scope.pagedata.nowmsgid++
		scope.pagedata.showtanmus=true
		scope.$evalAsync(scope.pagedata.showtanmus);
		setTimeout(function(){
			scope.pagedata.transition=true
			scope.$evalAsync(scope.pagedata.transition);	
		},300);
		setTimeout(function(){
			scope.pagedata.showtanmus=false
			scope.pagedata.transition=false
			scope.$evalAsync(scope.pagedata.showtanmus);	
		},2000);
		setTimeout(function(){
			//等待5秒，如果没有新的订单消息，就弹储备订单消息
			scope.pagedata.issocketmsg=scope.pagedata.issocketmsg?scope.pagedata.issocketmsg:false;
			if(!scope.pagedata.issocketmsg && scope.page.action=='index'){
				scope.pagedata.up_oldtanmu();
			}
		},4000);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>
